package com.wkq.move.module.search.ui.activity

import android.content.Context
import android.content.Intent
import android.os.Bundle
import com.wkq.base.frame.activity.MvpBindingActivity
import com.wkq.lib_base.utlis.KeyboardUtils
import com.wkq.move.R
import com.wkq.move.databinding.ActivityTvSearchBinding
import com.wkq.move.module.search.frame.presenter.TvShowSearchPresenter
import com.wkq.move.module.search.frame.view.TvShowSearchView

/**
 * 作者: 吴奎庆
 *
 * 时间: 2020/5/23
 *
 * 简介:
 */

class TvShowSearchActivity :
    MvpBindingActivity<TvShowSearchView, TvShowSearchPresenter, ActivityTvSearchBinding>() {

    companion object {
        fun newInstance(context: Context) {
            var intnet = Intent(context, TvShowSearchActivity().javaClass)
            context.startActivity(intnet)
        }
    }

    override fun getLayoutId(): Int {
        return R.layout.activity_tv_search
    }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        if (mvpView != null) mvpView.initView()
    }

    override fun onPause() {
        super.onPause()
        KeyboardUtils.hideSoftInput(this)
    }

}